<?php

namespace app\health\model\healthPro;

use think\Model;

class Callback extends Model
{
    // 表名
    protected $name = 'callback';

    protected $connection = 'database.pajk';

    protected $type = [
        'is_receive' => 'integer'
    ];

    /**
     * 关联产品信息
     * @Author 张旭鹏
     * @DateTime 2023-07-21
     */
    public function product()
    {
        return $this->belongsTo(Product::class, 'bus_code', 'iden');
    }

    public function interests()
    {
        return $this->belongsTo(Interests::class, 'sku_code', 'sku_code');
    }
}
